CMAKE_MINIMUM_REQUIRED (VERSION 2.6.3)

# I really hope your project's name is something cooler than this
PROJECT(MyProject)
MESSAGE ("SALAM")
# This is the magic line needed for any KTH Robot Framework project
INCLUDE($ENV{ROBOT_FRAMEWORK_PROJECT_CMAKE})


# Here we are going to demonstrate a modular program
#    We put the modules in a subdirectory...
#    The modules directory has it's own CMakeLists.txt file
ADD_SUBDIRECTORY(modules)

ADD_EXECUTABLE(vision_test vision_test.cpp)

#   ...then we notify cmake that we are dependent on the modules
#   ...as well as the robot_framework
TARGET_LINK_LIBRARIES(vision_test
  Vision
  Classifier
  Util
  robot_framework)

ADD_EXECUTABLE(test robot.cc)

#   ...then we notify cmake that we are dependent on the modules
#   ...as well as the robot_framework
TARGET_LINK_LIBRARIES(test
  Vision
  Classifier
  Util
  robot_framework)
  